import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class AnnoTest {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException {
        //
        Class clazz = Class.forName("UseTest");

        //
        UseTest uestest = (UseTest) clazz.newInstance();

        // 
        Method[] methods = clazz.getDeclaredMethods();

        //
        for (Method method : methods) {
            if (method.isAnnotationPresent(Test.class)){
                method.invoke(uestest);
            }
        }
    }
}
